package com.pwt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * 统计百分比关联表
 *
 * @author auto generated
 * @date 2021-09-23 11:32:09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[statistics_percent]")
@Schema(name = "统计百分比关联表")
@DynamicInsert
@DynamicUpdate
public class StatisticsPercent extends BaseEntity {

	/**
	 * 统计配置id，关联product_statistics.id
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "productStatisticsId",description = "统计配置id，关联product_statistics.id",hidden = true)
	@Column(name = "product_statistics_id", nullable = true, length = 32)
	private String productStatisticsId;

	/**
	 * 开始百分比 单位%
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "startPercent",description = "开始百分比 单位%")
	@Column(name = "start_percent", nullable = true, length = 4)
	private Double startPercent;

	/**
	 * 结束百分比 单位%
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "endPercent",description = "结束百分比 单位%")
	@Column(name = "end_percent", nullable = true, length = 4)
	private Double endPercent;

	/**
	 * 配置颜色
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "color",description = "配置颜色")
	@Column(name = "color", nullable = true, length = 64)
	private String color;

}
